package com.gz.common;

import com.gz.common.model.Ad;
import com.gz.common.model.Coupon;

import java.util.List;


public class AdService {
    private static AdService service;

    private AdService() {
    }

    public static AdService getService() {
        if (service == null) {
            service = new AdService();
        }
        return service;
    }

    public List<Ad> getAd() {
        List<Ad> adList = Ad.dao.find("select * from tb_ad order by sort_num asc limit 0,3");
        return adList;
    }
}
